<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>汇景商务中心--用户注册</title>
<meta name="keywords" content="{$seo_keywords}" />
<meta name="description" content="{$seo_description}" />
<meta name="Copyright" content="Copyright (c) 2011 huijen.com" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="favicon.ico" rel="shortcut icon" type="image/x-icon" />
<meta content="Styles:梁兴源,Tpl:itlgh@qq.com,App:Fern" name="author" />
<link href="__PUBLIC__/Css/biz/base.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/biz/common.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/biz/login.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/Css/zqpage.css" rel="stylesheet" type="text/css" />
<load href="__PUBLIC__/scripts/jquery.min.js"/>
<load href="__PUBLIC__/scripts/common.js"/>
<load href="__PUBLIC__/Js/jquery.validate.js"/>
<load href="__PUBLIC__/Js/artDialog.min.js"/>
<load href="__PUBLIC__/Js/jquery.form.js"/>
</head>
<body onLoad="reload()">
<!--头部logo 搜索框区域-->
<include file="Biz:top" />
<!--登录主要区域-->
<div class="w960 mt15">
  <h3 class="bread">您的位置：<a href="/">首页</a>&nbsp;>&nbsp;<a href="{:U("Biz/Index/index")}">商务中心</a>&nbsp;>&nbsp;<a href="{:U("User/Login/reg")}">用户注册</a></h3>
  <div class="content mt10 pr">
    <form method='post' name="login" id="form1" action="{:U('Login/doreg')}">
      <table>
        <tr class="radio">
          <th></th>
          <td><input type="radio" name="usertype" value="1" checked="checked" />
            <strong>企业用户</strong>
            <input type="radio" name="usertype" value="2" />
            <strong>个人用户</strong> </td>
        </tr>
        <tr class="username">
          <th>用户名:</th>
          <td><input type="text" name="username" id="username" /></td>
        </tr>
        <tr class="pwd">
          <th>密&nbsp;&nbsp;码:</th>
          <td><input type="password" name="password" id="password" /></td>
        </tr>
        <tr class="pwd">
          <th>确认密码:</th>
          <td><input type="password" name="repassword" id="repassword" /></td>
        </tr>
        <tr class="pwd">
          <th>邮&nbsp;&nbsp;箱:</th>
          <td><input type="text" name="email" id="email" /></td>
        </tr>
        <tr class="pwd">
          <th>验证码:</th>
          <td style="vertical-align:middle;"><input name="verifyCode" class="input-text"  class="inputbox" id="verifyCode"  size="6" value="" maxlength="4" style="width:auto;" />
            <img src="{:U('Login/verify')}" onclick="javascript:resetVerifyCode();" class="checkcode" align="absmiddle"  title="{:L('resetVerifyCode')}" id="verifyImage" style="margin:0; padding:0;vertical-align:middle;"/></td>
        </tr>
        <tr class="btnArea">
          <th></th>
          <td>
            <input type="submit" value="&nbsp;" /></td>
        </tr>
        <tr>
          <td></td>
          <td><div id="result" class="result none"></div></td>
        </tr>
      </table>
      <input type="hidden" name="ajax" value="1">
    </form>
    <span class="glass pa"></span>
    <div class="pa otherMenu clearfix">
      <h2 class="mb20">注册成为网站会员，您将免费享受以下会员服务：</h2>
      <dl class="ml15">
        <dt>我是企业</dt>
        <dd>宣传公司</dd>
        <dd>发布需求</dd>
        <dd>在线招聘</dd>
        <dd>创意DIY</dd>
        <dd>求技术支援</dd>
      </dl>
      <dl>
        <dt>我是个人</dt>
        <dd>秀作品</dd>
        <dd>找工作</dd>
        <dd>接项目</dd>
        <dd>卖模板</dd>
        <dd>创意推广</dd>
        <dd>技术输出</dd>
      </dl>
    </div>
  </div>
</div>
<!--底部导航链接-->
<include file="Biz:foot" />
<script language="JavaScript">
jQuery(document).ready(function($){
	$('#form1').ajaxForm({
		beforeSend:function(){
			$('#field_setup').html('<img src="__PUBLIC__/Images/msg_loading.gif">');
		 },
		success:complete,  // post-submit callback
		dataType: 'json'
	});

});
function complete(data){
        if (data.status==1)
        {
		 $('#result').html(data.info).show();
			//art.dialog.tips('{:L("logined_ok")}',2);
			setTimeout(function(){	window.location.href = '{:U("Login/index")}';},1000)

        }else{
            $('#result').html(data.info).show();
        }
}

function resetVerifyCode(){	//重载验证码
	var timenow = new Date().getTime();
	document.getElementById('verifyImage').src= '{:U("Login/verify")}#'+timenow;
}
function reload(){
	document.login.username.focus();
	if(self!=top){
	 window.top.location.href = '{:U("Login/index")}';
	}
}
</script>
</body>
</html>
